package com.zw.baidu;

import com.baidu.aip.ocr.AipOcr;
import com.baidu.aip.speech.AipSpeech;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class BaiduApplication {
	//设置APPID/AK/SK
	public static final String APP_ID = "11595636";
	public static final String API_KEY = "u0fQnMxCBBgrDh8Ekm7xoX7a";
	public static final String SECRET_KEY = "iVSbqTB2nDcsDdzGwTho9140T4ZXXDua";
	public static AipOcr aipOcr=null;
	public static AipSpeech aipSpeech=null;
	public static void main(String[] args) {
		SpringApplication.run(BaiduApplication.class, args);
		// 初始化一个AipOcr
		 aipOcr = new AipOcr(APP_ID, API_KEY, SECRET_KEY);
		// 初始化一个AipSpeech
		aipSpeech = new AipSpeech(APP_ID, API_KEY, SECRET_KEY);
	}
}
